/*
 * @Description: A * @Author: 亢超
 * @Date: 2024-11-14 11:34:01
 * @LastEditTime: 2024-11-14 22:22:16
 */
import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)
//默认路由所有用户共享
const routes = [
  {
    path: '/',
    name: 'index',
    meta: { title: '首页' },
    component: () => import('@/views/layout/index.vue'),
    children: [
      {
        path: '',
        name: 'index',
        meta: { title: '首页' },
        component: () => import('@/views/index/index.vue')
      }, {
        path: '/toolAssembly',
        name: 'toolAssembly',
        meta: { title: '组刀调整' },
        component: () => import('@/views/toolAssembly/index.vue')
      }, {
        path: '/toolHandler',
        name: 'toolHandler',
        meta: { title: '组刀操作' },
        component: () => import('@/views/toolAssembly/toolHandler.vue')
      }
      , {
        path: '/toolDetail',
        name: 'toolDetail',
        meta: { title: '组刀详情' },
        component: () => import('@/views/toolAssembly/toolDetail.vue')
      },
      {
        path: '/toolRecording',
        name: 'toolRecording',
        meta: { title: '组刀记录' },
        component: () => import('@/views/toolAssembly/toolRecording.vue')
      }, {
        path: '/machiningParameter',
        name: 'machiningParameter',
        meta: { title: '参数配置' },
        component: () => import('@/views/params/index.vue')
      }, {
        path: '/personalCenter',
        name: 'personalCenter',
        meta: { title: '个人中心' },
        component: () => import('@/views/personalCenter/index.vue')
      }, {
        path: '/loginInfo',
        name: 'loginInfo',
        meta: { title: '登录信息' },
        component: () => import('@/views/personalCenter/loginInfo.vue')
      }, {
        path: '/regisInfo',
        name: 'regisInfo',
        meta: { title: '注册信息' },
        component: () => import('@/views/personalCenter/regisInfo.vue')
      },
      // toolDetail
    ]
  },
  {
    path: '/login',
    name: 'login',
    meta: { title: '登录' },
    component: () => import('@/views/common/login.vue')
  },
  // {
  //   path: '/:pathMatch(.*)*',
  //   name: 'NotFound',
  //   component: NotFound
  // },
]



const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
